<?php
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
#	FILE:			includes/ajax/xmls.php
#	FUNCTION:		Get xml content according to path, and parse the xml and insert into database 
#	AUTHOR:			Adrian Liu
#	Modified:		03/08/2011
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

if(@$_GET['fpath']){
	
	$filePath = $_GET['fpath'];

	$strContent=  file_get_contents($filePath);
	
	//echo $strContent;
	
	addContent($filePath);
	
	$html = new DOMDocument();//initialize DOMDocument object
	
	$html -> loadXML($strContent);
	
	$nodeName = $html -> documentElement -> nodeName;
	
	$sql = "";
	
//	if($html -> documentElement -> hasAttributes){
//		
//		
//	}
	
	
	$path = "/".$nodeName;
	
	
	
	//excXMLImport($filePath,$path);

	
}
?>